/**
 * Created by asus on 2017/4/27.
 */
$(function(){
    //用户余额和经验等级
    var u_score = localStorage.u_score;
    var u_balance = localStorage.u_balance;
    var u_balance_item = $(".u_balance");
    u_balance_item.html(u_balance);
    var u_leval = null;
    var u_leval_mark = null;
    if(u_score<3000){
        u_leval = 1;
        u_leval_mark = "user_leval_1";
    }else if(u_score>=3000&&u_score<18000){
        u_leval = 2;
        u_leval_mark = "user_leval_2";
    }else if(u_score>=18000&&u_score<40000){
        u_leval = 3;
        u_leval_mark = "user_leval_3";
    }else if(u_score>=40000&&u_score<100000){
        u_leval = 4;
        u_leval_mark = "user_leval_4";
    }else if(u_score>=100000){
        u_leval = 5;
        u_leval_mark = "user_leval_5";
    }
    var user_leval_mark = $(".user_leval_mark");
    user_leval_mark.addClass(u_leval_mark);

});